package com.runcode.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.runcode.service.ProducerService;

//@RestController
public class HelloFeignController {

	@Autowired
	private ProducerService producerService;
	
	@RequestMapping(value = "/hello/feign")
	public String hello(String name) {
		String res = producerService.producerHello(name);
		return res;
	}
}
